<?php
require_once 'common/Dao.php';
require_once 'common/db.php';

$db = Db::init();
$dao = new Dao($db);
$list = $dao->selectStatment('Select * from users where username like ?', array('%add 1%'));
$c = count($list);
echo '<br>';
print_r( $list);


$ret = $db->query('select * from users limit 1');
$data = $ret->fetchAll();
echo '<br>';
print_r($data);